package com.itheima.io;

import java.io.*;

public class Demo03 {
    public static void main(String[] args) throws IOException {
        /*FileOutputStream fos = new FileOutputStream("day11_lianxi\\a.txt");
        fos.write("asdadqd".getBytes());
        fos.close();*/


        FileInputStream fis = new FileInputStream("day11_lianxi\\a.txt");
        byte[] bys = new byte[1024];
        int len;
        while ((len = fis.read(bys)) != -1) {
            System.out.print(new String(bys, 0, len));
        }
        fis.close();
    }
}
